﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Command_Pattern
{
    class Program
    {
        static void Main(string[] args)
        {

            SonyMoviePlayer sonyMoviePlayer = new SonyMoviePlayer();
            SamsungMoviePlayer samsungMoviePlayer = new SamsungMoviePlayer();
            RemoteControl rc = new RemoteControl(new PlayCommand(sonyMoviePlayer));

            rc.pressExecute();
            rc.pressUndo();

            rc.setCommand(new StopCommand(samsungMoviePlayer));

            rc.pressExecute();
            rc.pressUndo();

        }
    }
}
